import http from '@/utils/request'

export function loginByUsername(username, password) {
  const data = {
    username,
    password
  }
  return http.post('http://192.168.9.9:8888/users/login', data)
}

export function logout() {
  return http.get('http://192.168.9.9:8888/users/logout')
}

export function getUserInfo() {
  return http.get('http://192.168.9.9:8888/users')
}

